Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / app / src / main / java / com / geeksville / mesh / repository / datastore / ChannelSetSerializer.kt

Displaying Raw • Download

app/src/main/java/com/geeksville/mesh/repository/datastore/ChannelSetSerializer.kt ui_message_list (be3f882f) Text, 1.63 KB

T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

Tff7b72package T7ee787com.geeksville.mesh.repository.datastore

Tff7b72import T7ee787androidx.datastore.core.CorruptionException
Tff7b72import T7ee787androidx.datastore.core.Serializer
Tff7b72import T7ee787com.geeksville.mesh.AppOnlyProtos.ChannelSet
Tff7b72import T7ee787com.google.protobuf.InvalidProtocolBufferException
Tff7b72import T7ee787java.io.InputStream
Tff7b72import T7ee787java.io.OutputStream

T8b949e/**
* Serializer for the [ChannelSet] object defined in apponly.proto.
*/
Tf0883e@SuppressTb4b4b4(Ta5d6ff"Ta5d6ffBlockingMethodInNonBlockingContextTa5d6ff"Tb4b4b4)
Tff7b72object T56d364ChannelSetSerializer Tb4b4b4: Te6edf3SerializerTff7b72<Te6edf3ChannelSetTff7b72> Tb4b4b4{
Tff7b72override Tff7b72val Te6edf3defaultValueTb4b4b4: Te6edf3ChannelSet Tff7b72= Te6edf3ChannelSetTb4b4b4.Te6edf3getDefaultInstanceTb4b4b4(Tb4b4b4)

Tff7b72override Tff7b72suspend Tff7b72fun Td2a8ffreadFromTb4b4b4(Te6edf3inputTb4b4b4: Te6edf3InputStreamTb4b4b4)Tb4b4b4: Te6edf3ChannelSet Tb4b4b4{
Tff7b72try Tb4b4b4{
Tff7b72return Te6edf3ChannelSetTb4b4b4.Te6edf3parseFromTb4b4b4(Te6edf3inputTb4b4b4)
Tb4b4b4} Tff7b72catch Tb4b4b4(Te6edf3exceptionTb4b4b4: Te6edf3InvalidProtocolBufferExceptionTb4b4b4) Tb4b4b4{
Tff7b72throw Te6edf3CorruptionExceptionTb4b4b4(Ta5d6ff"Ta5d6ffCannot read proto.Ta5d6ff"Tb4b4b4, Te6edf3exceptionTb4b4b4)
Tb4b4b4}
Tb4b4b4}

Tff7b72override Tff7b72suspend Tff7b72fun Td2a8ffwriteToTb4b4b4(Te6edf3tTb4b4b4: Te6edf3ChannelSetTb4b4b4, Te6edf3outputTb4b4b4: Te6edf3OutputStreamTb4b4b4) Tff7b72= Te6edf3tTb4b4b4.Te6edf3writeToTb4b4b4(Te6edf3outputTb4b4b4)
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.08s